#ifndef __WORKER_H__
#define __WORKER_H__
#include "Utils.h"

/*
==========Server Worker==========
*/
int ServerCdHandler(MYSQL *mysql_connect, const int netfd,int *pwd_file_id);
int ServerPwdHandler(MYSQL *mysql_connect, const int netfd, const int pwd_file_id);
int ServerLsHandler(MYSQL *mysql_connect, const int netfd,const int pwd_file_id);
int ServerPutsHandler(MYSQL *mysql_connect, const int netfd,const int pwd_file_id);
int ServerGetsHandler(MYSQL *mysql_connect, const int netfd,const int pwd_file_id);
int ServerRmHandler(MYSQL *mysql_connect, const int netfd,const int pwd_file_id);
int ServerMkdirHandler(MYSQL *mysql_connect, const int netfd,const int pwd_file_id);
int ServerRmdirHandler(MYSQL *mysql_connect, const int netfd,const int pwd_file_id);
/*
==========End of Server Worker=========
==========Client Worker==========
*/
int ClientCdHandler(const int sockfd, char *path);
int ClientPwdHandler(const int sockfd, char *path);
int ClientLsHandler(const int sockfd, char *path);
int ClientPutsHandler(const int sockfd, char *path);
int ClientGetsHandler(const int sockfd, char *path);
int ClientRmHandler(const int sockfd, char *path);
int ClientMkdirHandler(const int sockfd, char *path);
int ClientRmdirHandler(const int sockfd, char *path);
/*
==========End of Client Worker==========
*/


#endif  //__WORKER_H__